package cn.itsource.pethome.product.mapper;

import cn.itsource.pethome.basic.mapper.BaseMapper;
import cn.itsource.pethome.product.domain.Product;
import cn.itsource.pethome.product.domain.ProductDetail;
import org.apache.ibatis.annotations.Param;

/**
 * 产品服务相关数据持久层
 */
public interface ProductMapper extends BaseMapper<Product> {


    /**
     * 上架
     * @param id  产品id
     * @param productActive  产品状态
     */
    void updateStateById(@Param("id") Long id,@Param("productActive") Integer productActive,@Param("product") Product product);


}
